home *** CD-ROM | disk | FTP | other *** search
/ CD World 1997 November / CD World - Kasım 1997.iso / misc / cryptext / readme.txt < prev    next >
Text File  |  1997-03-14  |  7KB  |  149 lines

  1. Copyright (c) Nick Payne 1996-1997
  2.  
  3. Cryptext v2.31
  4.  
  5. **IMPORTANT** This version of Cryptext is _not_ compatible with any version
  6. of Cryptext prior to v2.30. If you have files you have encrypted with an earlier
  7. version of Cryptext, you must decrypt them before installing the new version.
  8. If you do not, you will not be able to decrypt these files without 
  9. un-installing the new version and re-installing the previous version.
  10.  
  11. Cryptext is a freeware Windows 95 / NT4 shell extension that performs strong 
  12. file encryption. It uses a combination of SHA-1 and RC4 to encrypt files using 
  13. a 160-bit key. The current version of Cryptext can be found on my home page at 
  14. http://www.pcug.org.au/~njpayne.
  15.  
  16. Cryptext may be used in any way, for any purpose, at no cost. It may be 
  17. distributed by any means, provided that the original files as supplied by the 
  18. author remain intact and that no charge is made other than for reasonable 
  19. distribution costs. Note that Cryptext contains strong cryptographic routines 
  20. upon which some countries place distribution and/or use restrictions. Verify 
  21. that you are allowed to use or distribute Cryptext before doing so.
  22.  
  23. DISCLAIMER OF WARRANTY
  24. THIS SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" AND WITHOUT WARRANTIES 
  25. AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER WARRANTIES WHETHER EXPRESSED 
  26. OR IMPLIED. BECAUSE OF THE VARIOUS HARDWARE AND SOFTWARE ENVIRONMENTS INTO 
  27. WHICH THIS PROGRAM MAY BE PUT, NO WARRANTY OF FITNESS FOR PARTICULAR PURPOSE 
  28. IS OFFERED. GOOD DATA PROCESSING PROCEDURE DICTATES THAT ANY PROGRAM BE 
  29. THOROUGHLY TESTED WITH NON-CRITICAL DATA BEFORE RELYING ON IT. THE USER MUST 
  30. ASSUME THE ENTIRE RISK OF USING THE PROGRAM.
  31.  
  32. Any product or brand names mentioned in this document are trademarks or 
  33. registered trademarks of their respective owners.
  34.  
  35. To install Cryptext
  36. ===================
  37. 1. If you have a previous version of Cryptext installed, decrypt any 
  38.    encrypted files.
  39.  
  40. 2. Unzip the contents of CRYPTEXT.ZIP into a temporary directory
  41.  
  42. 3. In Explorer, right-click on CRYPTEXT.INF and select Install from the popup 
  43.    context menu. 
  44.  
  45. To install this shell extension on Windows NT you must be logged in as 
  46. administrator or a user who is a member of the Administrators group. This is 
  47. because installing a shell extension on NT requires update rights to a part of 
  48. the registry to which a normal user cannot write.
  49.  
  50. To uninstall Cryptext
  51. =====================
  52. 1. From the Start menu, select Settings, then Control Panel, then Add/Remove 
  53.    Programs. 
  54.  
  55. 2. Select the "Cryptext (Remove only)" entry.
  56.  
  57. 3. Click on the Add/Remove button.
  58.  
  59. How does it work?
  60. =================
  61. 1. When you install Cryptext it adds "Encrypt" and "Decrypt" items to the 
  62.    context menu you get when right-clicking on files or directories in 
  63.    Explorer.
  64.  
  65. 2. When you encrypt a file, Cryptext takes your passphrase and uses the SHA-1 
  66.    one-way hash function to generate a 160-bit key. 
  67.  
  68. 3. For each file selected, it then concatenates the key from step 2 with a 
  69.    salt value generated from (a) the number of 100-nanosecond intervals since 
  70.    January 1, 1601, and (b) a 32-bit random number, and hashes this concatenation 
  71.    with SHA-1 to produce the key which is used for the encryption. This step is 
  72.    taken to ensure that no two files are encrypted with the same keystream.
  73.  
  74. 4. The salt values from step 3 are stored in plaintext with the encrypted file, 
  75.    so that the file can be successfully decrypted when the correct passphrase is 
  76.    supplied. There is no requirement that these values be kept secret, only that 
  77.    they be unique for each file.
  78.  
  79. 5. In order to verify your passphrase on second and subsequent executions, 
  80.    Cryptext takes the key generated in step 2, adds it to the end of your 
  81.    passphrase, and applies the SHA-1 function to the concatenation of the 
  82.    passphrase and key. The resultant hash is saved so that subsequent passphrases 
  83.    can be checked for validity by being put through the same two-step hash and 
  84.    compared with the stored value.
  85.  
  86. For decryption, Cryptext first reads the values saved in step 4 from the encrypted 
  87. file and concatenates them with your hashed passphrase to obtain the decryption 
  88. key.
  89.  
  90. Verification
  91. ============
  92. To verify that Cryptext actually does what I claim, I have provided the source code 
  93. and a Visual C++ make file to build a Win32 console application that uses SHA-1 and 
  94. RC4 to decrypt files which have been encrypted with Cryptext. To verify:
  95. 1. Check the source code
  96. 2. Use the make file to build DECRYPT.EXE
  97. 3. Encrypt a file with Cryptext
  98. 4. Run DECRYPT.EXE in a DOS window to decrypt the file. You need to supply two command
  99.    line parameters. The first is the passphrase; the second is the filename. e.g.
  100.       DECRYPT " my pass phrase" c:\temp\test.txt.$#!
  101.    Don't forget that a file encrypted with Cryptext will have the added extension "$#!"
  102.    which is not shown in Explorer.
  103.  
  104. Notes
  105. =====
  106. 1. If you are running on Windows NT 4 then you have the option to retain the 
  107.    encryption password in memory for the duration of your NT session. If you 
  108.    are running on Windows 95 you must enter the password for each encryption 
  109.    or decryption.
  110.  
  111. 2. After the initial execution of Cryptext, you cannot change your encryption 
  112.    password unless you know the existing password. If you forget the password, 
  113.    you have to uninstall and reinstall Cryptext. If you have files you have 
  114.    encrypted and you have forgotten the password then those files are not 
  115.    recoverable. 
  116.  
  117. 3. Cryptext assumes that the file system on which it is running supports long 
  118.    filenames. When it encrypts a file it adds the extension ".$#!" to the 
  119.    filename. This name change will fail if the existing filename already 
  120.    exceeds 252 characters or if the file system does not support long 
  121.    filenames (such as a NetWare server volume which does not have long 
  122.    namespace support loaded). The resulting file is still encrypted but it 
  123.    does not have the extension which Cryptext recognises, and when you decrypt 
  124.    it you will be queried whether the file is actually encrypted.
  125.  
  126. 4. Password selection. Cryptext allows a password to be up to 255 characters 
  127.    long. As a file encryption password is generally in use for much longer 
  128.    than a login password, you should use more care selecting it. For more 
  129.    information on good password selection, use one of the www search engines 
  130.    to search for web documents containing "password", "selection", and "good".
  131.  
  132. 5. My thanks to Gary Mulhern for showing how to add the registry entries to 
  133.    get a meaningful icon and file type to display for encrypted files in 
  134.    Explorer.
  135.  
  136. If you are interested in finding out more about encryption and cryptography:
  137. a) RSA's web site at www.rsa.com has a good cryptography FAQ available both 
  138.    online and as a downloadable PDF file
  139. b) There is a lot of cryptographic source code at the ftp site
  140.    idea.sec.dsi.unimi.it/pub/security/crypt/code
  141. c) Bruce Schneier's book "Applied Cryptography" has a comprehensive coverage 
  142.    of both protocols and algorithms
  143. d) You can find an encryption library which provides a consistent interface
  144.    to many encryption algorithms, as both source code and 16- and 32-bit DLLs,
  145.    at http://www.cs.auckland.ac.nz/~pgut001/cryptlib.html.
  146.  
  147. Nick Payne
  148. njpayne@pcug.org.au
  149.